package fy.hr.bean;

import org.json.JSONException;
import org.json.JSONObject;

public class PersonInfoBean {

	private String code;

	private String name;//姓名

	private String dep;//部门

	private String post;//岗位
	
	private String date;//入厂时间
	private String basgroupdef23;//银行卡号
	private String id;//身份证号
	private String mobile;//联系方式
	private String pk_corp;
	
	private boolean existPk_tbm_psndoc;
	
	public String getPk_corp() {
		return pk_corp;
	}

	public void setPk_corp(String pk_corp) {
		this.pk_corp = pk_corp;
	}

	public boolean isExistPk_tbm_psndoc() {
		return existPk_tbm_psndoc;
	}

	public void setExistPk_tbm_psndoc(boolean existPk_tbm_psndoc) {
		this.existPk_tbm_psndoc = existPk_tbm_psndoc;
	}

	public String getID() {
		return  new StringBuilder().append("code").append(code).toString();
	}
	
	public String getCode() {
		return  code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDep() {
		return dep;
	}

	public void setDep(String dep) {
		this.dep = dep;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}
	
	public JSONObject getJSONObject() throws JSONException{
		JSONObject jo = new JSONObject();
		jo.put("code", code);
		jo.put("name", name);
		jo.put("dep", dep);
		jo.put("post", post);
		jo.put("date", date);
		jo.put("bgroupdef23",basgroupdef23);
		jo.put("id", id);
		jo.put("mobile",mobile);
		jo.put("existPk_tbm_psndoc",existPk_tbm_psndoc);
		jo.put("pk_corp",pk_corp);
		return jo;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public String getBasgroupdef23() {
		return basgroupdef23;
	}

	public void setBasgroupdef23(String basgroupdef23) {
		this.basgroupdef23 = basgroupdef23;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

//	public String toString() { 
//
//		StringBuilder sb = new StringBuilder();
//
//		sb.append("{code:'").append(this.code).append("', name : '").append(
//				this.name).append("', dep : '").append(this.dep).append(
//				"' post : '").append(post).append("'}");
//
//		return sb.toString();
//	}
}
